﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Adm.Master" AutoEventWireup="true" CodeBehind="FormUsb.aspx.cs" Inherits="PROAD.admin.Forms.FormUsb" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="IncludeHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="IncludeTitulo" runat="server">
    <h1>Formulário US - Unidade de Saúde</h1>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="IncludeLink" runat="server">
    <h1><a href="/admin/Consulta/consultaUnidadeCadastrada.aspx">Lista US - Nova</a></h1>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="IncludeConteudo" runat="server">
    <h2>Preencha os dados abaixo </h2>
 
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        
    <table width="100%">
                    <tr>
                        <td colspan="2">Nome da US*</td>
                        <td colspan="2">Região*</td>                     
                    </tr>
                     <tr>
                        <td colspan="2"><asp:TextBox ID="txtNomeUs" runat="server" Width="150px"></asp:TextBox></td>
                        <td colspan="2"><asp:TextBox ID="txtRegiao" runat="server" Width="106px"></asp:TextBox></td>
                     </tr>
                     <tr>
                        <td>UF*</td>
                        <td>Município*</td>
                        <td>CEP</td>
                        <td>Status*</td>
                    </tr>
                      <tr>
                        <td><asp:DropDownList ID="ddlUf" runat="server" Width="89px" 
                                onselectedindexchanged="ddlUf_SelectedIndexChanged" 
                                DataValueField="CO_UF" DataTextField="NO_SIGLA"
                                AutoPostBack="true">
                         </asp:DropDownList></td>
                        <td><asp:DropDownList ID="ddlMunicipio" runat="server" Width="138px"
                            DataValueField="CO_CIDADE" DataTextField="NO_CIDADE">
                         </asp:DropDownList></td>
                        <td><asp:TextBox ID="txtCep" runat="server" Width="179px"></asp:TextBox></td>
                        <td><asp:DropDownList ID="ddlStatus" runat="server" Width="139px">
                            <asp:ListItem Value="">Status</asp:ListItem>
                            <asp:ListItem Value="1">Ativo</asp:ListItem>
                            <asp:ListItem Value="0">Inativo</asp:ListItem>
                         </asp:DropDownList></td>
                    </tr>
                     <tr>
                        <td colspan="4"> 
                        Endereço Completo
                         </td>
                     </tr>
                    <tr>
                        <td colspan="4"> 
                       <asp:TextBox ID="txtEndereco" runat="server" Width="717px"></asp:TextBox>
                         </td>
                     </tr>
                     <tr>
                        <td colspan="4"> 
                       &nbsp;
                         </td>
                     </tr>
                     <tr>
                        <td colspan="4"> 
                        <div style=" margin-left:580px">
                       <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" 
                                onclick="btnCancelar_Click" />&nbsp;&nbsp;
                       <asp:Button ID="btnSalvar" runat="server" Text="Salvar" onclick="btnSalvar_Click" />
                       </div>
                         </td>
                         
                     </tr>
        </table>

        <!-- Área de Validação abaixo -->

    <div style="display:none;">
    <asp:HyperLink ID="linkMsn" runat="server">HyperLink</asp:HyperLink>
    </div>

    <asp:ModalPopupExtender ID="ModalPopupMsn" TargetControlID="linkMsn" runat="server"
        PopupControlID="PainelMsn" CancelControlID="btnCancelarMsn"
        BackgroundCssClass="modalBackground">
    </asp:ModalPopupExtender>

    <asp:Panel ID="PainelMsn" runat="server" Style="display:none" Width="350px" CssClass="modalPopup">
        <asp:Panel ID="PainelCabecalho" runat="server" Style="border-bottom:solid 1px Gray;height:25px;">
            <div>
                <h1 style="line-height:25px;text-align:center;margin:0px 0px 0px 0px;vertical-align:bottom;padding:0px 0px 0px 0px;font-size:14px;font-family:Verdana;background-color:#FFFF95;">
                    <asp:Label ID="txtTituloMsn" runat="server"></asp:Label>
                    
                </h1>
            </div>
        </asp:Panel>
        <div>
            <br />
            <h2 style="margin:0px 0px 0px 0px;font-family:Verdana;font-size:11px;font-weight:normal;line-height:25px;width:100%;text-align:center;">
                <asp:Label ID="txtTextoMsn" runat="server"></asp:Label>
            </h2>
            <br />
            <table width="100%">
                <tr>
                    <td align="center">
                        <asp:Button ID="btnCancelarMsn" runat="server" Text="OK" />
                    </td>
                </tr>
            </table>            
        </div>
    </asp:Panel>

    <!-- Final Área de Validação -->

        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="IncludeRodape" runat="server">
</asp:Content>
